class Gift < ActiveRecord::Base
  def pictureimg=(picture_field)
    return if picture_field.blank?
    self.content_type = picture_field.content_type.chomp
    self.picture = picture_field.read
  end
  
end
